package com.auth2server.feign;

import com.auth2server.entity.TbPermissionEntity;
import com.auth2server.entity.TbUserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @ClassName ResouceFeignClient
 * @Description TODO
 * @Author zl-pc
 * @Date 2020/8/31
 * @Version 1.0
 **/
@FeignClient(value = "spring-cloud-auth2user")
public interface UserFeignClient {

    @GetMapping("/userController/getByUsername")
    TbUserEntity getByUsername(String username);
    @GetMapping("/permissionController/selectByUserId")
    List<TbPermissionEntity> selectByUserId(Long userId);


}
